package cn.cs.fallback;

import cn.cs.client.ProductClient;
import cn.cs.pojo.AgentShop;
import cn.cs.pojo.CsParts;
import cn.cs.pojo.Product;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;


/**
 * 类似于try catch中的catch块中的内容，即发生错误时，处理的过程
 * 是用来发生熔断时的顶包组件,因此也必须实现接口
 * 异常时做一些处理，给用户一个交代
 * */
@Component
public class ProductFallBack implements ProductClient {


    @Override
    public List<Product> getProductListPageByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getProductCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public List<String> getPlatFromProImages(String proId) {
        return null;
    }

    @Override
    public Product getProductById(String proId) {
        return null;
    }

    @Override
    public int getCellCount(String proId) {
        return 0;
    }

    @Override
    public List<Map<String, Object>> getProImagesByProId(String id) {
        return null;
    }

    @Override
    public List<Map<String, Object>> getProEvaluatesByProId(String id) {
        return null;
    }

    @Override
    public AgentShop getShopById(String shopId) {
        return null;
    }

    @Override
    public List<Product> getProductListByMap(Map<String, Object> param) {
        return null;
    }

    @Override
    public List<Map<String, Object>> getShopPro(Map<String, Object> map) {
        return null;
    }

    @Override
    public List<CsParts> showProduct(Map<String, Object> param) {
        return null;
    }
}
